import Layout from '@/layout'
const meta = {auth: true}
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)

export default {
  path: '/modules',
  component: Layout,
  name: 'modules',
  meta,
  redirect: { name: 'test' },
  children: (pre => [
      {
        path: 'index',
        component: _import('modules/test/index.vue'),
        name: `${pre}index`,
        meta: { ...meta,title: '测试页面' }
      },
      {
        path: 'index2',
        component: _import('modules/test/index2.vue'),
        name: `${pre}index2`,
        meta: { ...meta,title: '测试页面2' }
      }
    ]
  )('modules-')
}
